<?php /* Smarty version 2.6.18, created on 2008-05-22 16:06:23
         compiled from user.tpl */ ?>
      <?php if ($this->_tpl_vars['action'] == 'register'): ?>
      <h2><?php echo $this->_tpl_vars['lang']['register_title']; ?>
</h2>
      <?php if ($this->_tpl_vars['errors']): ?>
      <div>
         <ul>
            <?php $_from = $this->_tpl_vars['errors']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['err']):
?>
            <li><?php echo $this->_tpl_vars['err']; ?>
</li>
            <?php endforeach; endif; unset($_from); ?>
         </ul>
      </div>
      <?php endif; ?>
      <form method="post" action="/index.php?c=user&amp;a=register">
         <div>
            <div>
               <label><?php echo $this->_tpl_vars['lang']['user']; ?>
</label><br />
               <?php echo $this->_tpl_vars['lang']['user_constraints']; ?>

            </div>
            <div>
               <input type="text" name="login" value="<?php echo $this->_tpl_vars['user']->getLogin(); ?>
"/>
            </div>
         </div>
         <div>
            <div>
               <label><?php echo $this->_tpl_vars['lang']['email']; ?>
</label><br />
               <?php echo $this->_tpl_vars['lang']['user_email_constraints']; ?>

            </div>
            <div>
               <input type="text" name="email" value="<?php echo $this->_tpl_vars['user']->getEmail(); ?>
"/>
            </div>
         </div>
         <div>
            <div>
               <label><?php echo $this->_tpl_vars['lang']['pass']; ?>
</label>
            </div>
            <div>
               <input type="password" name="password" />
            </div>
         </div>
         <div>
            <div>
               <label><?php echo $this->_tpl_vars['lang']['pass_repeat']; ?>
</label>
            </div>
            <div>
               <input type="password" name="password2" />
            </div>
         </div>
         <div>
            <div>
               <label><?php echo $this->_tpl_vars['lang']['captcha']; ?>
</label>
            </div>
            <div>
               <img src="/z-content/img/captcha.php" id="captcha" alt="captcha" /><br />
               <input type="text" name="captcha" />
            </div>
         </div>
         <div>
            <div>&nbsp;</div>
            <div>
               <?php echo $this->_tpl_vars['lang']['use_terms']; ?>
 <input type="checkbox" name="legal" value="ok" />
            </div>
         </div>
         <div>
            <div>&nbsp;</div>
            <div>
               <button type="submit">
                  <?php echo $this->_tpl_vars['lang']['send']; ?>

               </button>
            </div>
         </div>
      </form>
      <?php elseif ($this->_tpl_vars['action'] == 'endregister'): ?>
      <h2>Usuario registrado</h2>
      <p>Ahora debes validar tu correo electrónico para terminar el registro</p>
      <?php elseif ($this->_tpl_vars['action'] == 'login'): ?>

      <h2><?php echo $this->_tpl_vars['lang']['login']; ?>
</h2>
      <?php if ($this->_tpl_vars['errors']): ?>
      <div>
         <ul>
            <?php $_from = $this->_tpl_vars['errors']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['err']):
?>
            <li><?php echo $this->_tpl_vars['err']; ?>
</li>
            <?php endforeach; endif; unset($_from); ?>
         </ul>
      </div>
      <?php endif; ?>
      <form method="post" action="/index.php?c=user&amp;a=auth">
         <div>
            <div>
               <label><?php echo $this->_tpl_vars['lang']['user']; ?>
</label>
            </div>
            <div>
               <input type="text" name="login" />
            </div>
         </div>
         <div>
            <div>
               <label><?php echo $this->_tpl_vars['lang']['pass']; ?>
</label>
            </div>
            <div>
               <input type="password" name="password" />
            </div>
         </div>

         <?php if ($this->_tpl_vars['captcha']): ?>
         <div>
            <div>
               <label><?php echo $this->_tpl_vars['lang']['captcha']; ?>
</label>
            </div>
            <div>
               <img src="/z-content/img/captcha.php" id="captcha" alt="captcha" /><br />
               <input type="text" name="captcha">
            </div>
         </div>
         <?php endif; ?>

         <div>
            <div>&nbsp;</div>
            <div>
               <input type="checkbox" name="persistent" class="checkbox" />
               <?php echo $this->_tpl_vars['lang']['remember']; ?>

            </div>
         </div>
         <div>
            <div>&nbsp;</div>
            <div>
               <button type="submit">
                  <?php echo $this->_tpl_vars['lang']['send']; ?>

               </button>
            </div>
         </div>
      </form>

      <h4><a href="/index.php?c=user&amp;a=register"><?php echo $this->_tpl_vars['lang']['register_tooltip_title']; ?>
</a></h4>
      <p><?php echo $this->_tpl_vars['lang']['register_tooltip_text']; ?>
</p>

      <h4><a href="/index.php?c=user&amp;a=recover"><?php echo $this->_tpl_vars['lang']['recover_tooltip_title']; ?>
</a></h4>
      <p><?php echo $this->_tpl_vars['lang']['recover_tooltip_text']; ?>
</p>

      <?php elseif ($this->_tpl_vars['action'] == 'show'): ?>
      <h2><?php echo $this->_tpl_vars['lang']['profile']; ?>
: <?php echo $this->_tpl_vars['user_obj']->getLogin(); ?>
</h2>
      <div>
         <?php if ($this->_tpl_vars['user_obj']->getLogin() == $this->_tpl_vars['user']): ?>
         <a href="/index.php?c=user&amp;a=edit"><?php echo $this->_tpl_vars['lang']['edit']; ?>
</a><br />
         <?php endif; ?>
         <?php echo $this->_tpl_vars['lang']['user_since']; ?>
 <?php echo $this->_tpl_vars['user_obj']->getRegisterDate(); ?>
<br />
         <?php if ($this->_tpl_vars['user_obj']->getAvatar()): ?>
         <img src="/img/avatars/<?php echo $this->_tpl_vars['user_obj']->getId(); ?>
.jpg" alt="<?php echo $this->_tpl_vars['user_obj']->getLogin(); ?>
" />
         <?php else: ?>
         <!-- Aqui puede ir un avatar por defecto" -->
         <!-- <img src="/img/avatars/0.jpg" alt="<?php echo $this->_tpl_vars['user_obj']->getLogin(); ?>
" /> -->
         <?php endif; ?>
      </div>

      <?php elseif ($this->_tpl_vars['action'] == 'edit'): ?>
      <h2><?php echo $this->_tpl_vars['lang']['edit']; ?>
: <?php echo $this->_tpl_vars['user_obj']->getLogin(); ?>
</h2>
      <?php if ($this->_tpl_vars['errors']): ?>
      <div>
         <ul>
            <?php $_from = $this->_tpl_vars['errors']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['err']):
?>
            <li><?php echo $this->_tpl_vars['err']; ?>
</li>
            <?php endforeach; endif; unset($_from); ?>
         </ul>
      </div>
      <?php endif; ?>

      <form enctype="multipart/form-data" method="post" action="/index.php?c=user&amp;a=update">
         <div>
            <div>
               <label><?php echo $this->_tpl_vars['lang']['pass']; ?>
</label>
            </div>
            <div>
               <input type="password" name="password" />
            </div>
         </div>
         <div>
            <div>
               <label><?php echo $this->_tpl_vars['lang']['pass_repeat']; ?>
</label>
            </div>
            <div>
               <input type="password" name="password2" />
            </div>
         </div>
         <div>
            <div>
               <label><?php echo $this->_tpl_vars['lang']['avatar']; ?>
</label>
               <?php echo $this->_tpl_vars['lang']['avatar_constraints']; ?>

            </div>
            <div>
               <input type="file" name="avatar" />
            </div>
         </div>
         <div>
            <div>&nbsp;
            </div>
            <div>
               <input type="checkbox" name="del_avatar" value="1" >
                  <?php echo $this->_tpl_vars['lang']['avatar_delete']; ?>

               </input>
            </div>
         </div>
         <div>
            <div>
               &nbsp;
            </div>
            <div>
               <button type="submit">
                  <?php echo $this->_tpl_vars['lang']['send']; ?>

               </button>
            </div>
         </div>
      </form>

      <?php elseif ($this->_tpl_vars['action'] == 'recover'): ?>
      <h2><?php echo $this->_tpl_vars['lang']['recover_title']; ?>
</h2>

      <form action="index.php?c=user&amp;a=recover" method="post">
         <div>
            <div>
               <label><?php echo $this->_tpl_vars['lang']['email']; ?>
</label>
            </div>
            <div>
               <input type="text" class="text" name="email" />
            </div>
         </div>

         <div>
            <div>
               <label><?php echo $this->_tpl_vars['captcha']; ?>
</label>
            </div>
            <div>
               <img src="/z-content/img/captcha.php" id="captcha" alt="captcha" /><br />
            <input name="captcha" />
            </div>
         </div>

         <div class="form_row">
            <div>&nbsp;</div>
            <div>
               <button type="submit">
                  <?php echo $this->_tpl_vars['lang']['send']; ?>

               </button>
            </div>
         </div>
      </form>

      <?php endif; ?>